package org.zxp.designpattern.observer.javaapi;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-29 11:31
 **/
public class Watcher implements PropertyChangeListener {



    @Override
    public void propertyChange(PropertyChangeEvent evt) {
        System.out.println(evt.getPropertyName() +":" + evt.getOldValue() + " --> " + evt.getNewValue());
    }
}
